XSM/policy: Allow the source domain access to settime and setdomainhandle domctls...
authorAnshul Makkar <anshul.makkar@citrix.com>
Thu, 7 Jul 2016 13:45:47 +0000 (14:45 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 8 Jul 2016 13:36:00 +0000 (14:36 +0100)
commitf755485cbd2a17c4e0069271ee930ad0972c1b9c
tree8692ed423b1591f42f6ada81c2fbf60bd93b9cf0
parent4f7e0d54a523794197129cebdbc55f4f079e60b2
XSM/policy: Allow the source domain access to settime and setdomainhandle domctls while creating domain.

This patch resolves the following permission denied scenarios while creating
new domU :
avc:  denied  { setdomainhandle } for domid=0 target=1
scontext=system_u:system_r:dom0_t tcontext=system_u:system_r:domU_t tclass=domain

avc:  denied  { settime } for domid=0 target=1 scontext=system_u:system_r:dom0_t
tcontext=system_u:system_r:domU_t tclass=domain

Signed-off-by: Anshul Makkar <anshul.makkar@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
tools/flask/policy/modules/xen.if